Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

248
Visualizações
upload large file causing Error: "Payload content length greater than maximum allowed: 1048576"

I am just trying to invoke one lambda function from another lambda function, and i am sending a payload into that lambda function. If I paas a payload of size upto 1 mb, then i don't get this error, this error arises when the payload size is greater than 1 mb only.

import * as AWS from "aws-sdk";

const lambda = new AWS.Lambda({
  region: "us-east-1",
  endpoint: "http://localhost:3002",
});

const params = {
  FunctionName: "myFunction", // the lambda function we are going to invoke
  InvocationType: "RequestResponse",
  LogType: "Tail",
  Payload: JSON.stringify(data),
 };

const lambdaResult = await lambda.invoke(params).promise();
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Lambda invocation has limits on payload (6MB).

If you want to send larger data then that, you have to save it first, for example to S3, and then have second function read it from S3. This way you just send S3 url to the second function, instead of the entire data file.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda